'''
Created on 2024年8月17日

@author: Administrator
'''

import numpy as np,matplotlib.pyplot as plt

print(np.random.choice([0,255],4*4,p=[0.1,0.9]).reshape(4,4))

x = np.array([[0,0,255],[255,255,0],[0,255,0]])
plt.imshow(x, interpolation='nearest')
plt.show()


